out:
make_rx_response(vif, rx->id, size, status, offset);
+
+ /* record this so they can be billed */
+ vif->total_packets_received++;
+ vif->total_bytes_received += size;
}
/**
skb->data_len = tx->size - PKT_PROT_LEN;
skb->len = tx->size;
+ /* record the transmission so they can be billed */
+ vif->total_packets_sent++;
+ vif->total_bytes_sent += tx->size;
+
/* Transmit should always work, or the queue would be stopped. */
if ( dev->hard_start_xmit(skb, dev) != 0 )
{
make_tx_response(vif, tx.id, RING_STATUS_OK);
}
- /* record the transmission so they can be billed */
- vif->total_packets_sent++;
- vif->total_bytes_sent += tx.size;
-
tx_unmap_and_continue:
unmap_domain_mem(g_data);
spin_unlock_irq(¤t->page_lock);
guest_event_notify(cpu_mask);
}
spin_unlock_irqrestore(&vif->rx_lock, flags);
-
- /* record this so they can be billed */
- vif->total_packets_received++;
- vif->total_bytes_received += size;
}